package community.hospital.service.application;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import community.hospital.entity.request.ListOrderRequest;
import community.hospital.entity.request.OrderRequest;
import community.hospital.entity.response.OrderDetailResp;
import community.hospital.entity.response.OrderResponse;

/**
 * @author yindingjie
 */
public interface OrderApplicationService {
    Boolean addOrder(OrderRequest request);

    Boolean updateOrderState(Long orderId, Integer state);

    Page<OrderResponse> listOrder(ListOrderRequest request);


    int countByScheduleId(Long scheduleId);


    IPage<OrderDetailResp> getCurrentUserOrder();

    OrderDetailResp getRecentlyOrder();

}
